﻿@model SportsStore.WebUI.Models.ProductsListViewModel

@{
    ViewBag.Title = "Products";
}

<h2>Product List</h2>


@foreach (var p in Model.Products)
{
    //@{ Html.RenderPartial("ProductSummary",p); }
    Html.RenderPartial("ProductSummary", p);
}

<div class="pager">
@Html.PageLinks(Model.PageData, x => Url.Action("List", new { Page = x, category= Model.CurrentCategory}))
</div>